import java.awt.Point;
import org.rsbot.script.methods.Calculations;
import org.rsbot.script.methods.Objects;
import org.rsbot.script.methods.Walking;
import org.rsbot.script.wrappers.RSObject;
import org.rsbot.script.wrappers.RSPlayer;
import org.rsbot.script.wrappers.RSTile;

class VoluntaryThieve$Actions$13 extends VoluntaryThieve.Action
{
  VoluntaryThieve.Action.State perform()
  {
    return VoluntaryThieve.access$8300(this.this$1.this$0).walkTo(new RSTile(4747 + VoluntaryThieve.Actions.access$1100(this.this$1).x, 5795 + VoluntaryThieve.Actions.access$1100(this.this$1).y)) ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State confirm()
  {
    return this.this$1.this$0.getMyPlayer().isMoving() ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }

  VoluntaryThieve.Action.State finish()
  {
    RSObject localRSObject = VoluntaryThieve.access$8400(this.this$1.this$0).getNearest(new int[] { 52397 });
    if (localRSObject == null) {
      VoluntaryThieve.Antibans.access$4300(VoluntaryThieve.access$4200(this.this$1.this$0), new int[] { 0 }, this.this$1.this$0.random(17, 23));
    }
    return (localRSObject != null) && (VoluntaryThieve.access$8500(this.this$1.this$0).tileOnMap(localRSObject.getLocation())) ? VoluntaryThieve.Action.State.COMPLETED : VoluntaryThieve.Action.State.PROGRESSING;
  }
}